# coding:utf-8

# 以下为裁判机环境

submit_url = "http://192.168.80.1/lms/portal/sp/hz_flag.php" # 裁判机提交flag路径
submit_true = "success" # flag提交正确后的返回值
submit_method = "post" # 提交flag所用的请求。 ['get' , 'post']
submit_parm = "melee_flag" # flag 字段名称
cookie = "SSCSum=9; zlms-sid=slc67v15pcmd1aqgl95f8opo03; webcs_test_cookie=lms_cookie_checker; lms_login_name=G16"
# 提交flag时所需的headers

submit_headers={
	"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
	"Accept-Encoding": "gzip, deflate",
	"Accept-Language": "zh-CN,zh;q=0.9",
	"Cache-Control": "max-age=0",
	"Connection": "keep-alive",
	"Content-Length": "38",
	"Content-Type": "application/x-www-form-urlencoded",
	"Cookie": cookie,
	"Host": "192.168.80.1",
	"Origin": "http://192.168.80.1",
	"Referer": "http://192.168.80.1/lms/portal/sp/hz_flag.php",
	"Upgrade-Insecure-Requests": "1",
	"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
	}


# flag 正则匹配
# mode = 1 ,匹配flag_etc位,16进制字符串。例如：A46B7C6F97CA46B7C6F97CA46B7C6F97
# mode = 2 ,匹配形如flag{}。例如：flag{asdagfsdfs}
# mode = 3 ,匹配自己写的正则，此时flag_etc为正则表达式。
flag_mode=1
flag_etc="([a-z]{32})"